package com.mvvm.dao.department;

import com.mvvm.model.User.Department;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author fengyuan
 * @company tpsoft
 * @date 2018/11/12/012
 */
public interface DepartmentDao  extends JpaRepository<Department,Integer> {
    @Query("from Department ")
    public List<Department> getDepartments();
}
